<template>
  <div class="app-footer">
    <div class="footer-content">
      <div class="copyright">
        <span class="copyright-text">Copyright © {{ currentYear }} 微前端平台 All Rights Reserved</span>
        <div class="footer-icons">
          <el-tooltip content="GitHub" placement="top">
            <a href="https://github.com" target="_blank" class="footer-icon">
              <i class="fab fa-github"></i>
            </a>
          </el-tooltip>
          <el-tooltip content="文档中心" placement="top">
            <a href="javascript:;" class="footer-icon">
              <i class="fas fa-book"></i>
            </a>
          </el-tooltip>
        </div>
      </div>
    </div>
  </div>
</template>

<script setup lang="ts">
import { computed } from 'vue'
import { ElMessage } from 'element-plus'

// 当前年份
const currentYear = computed(() => new Date().getFullYear())

// 显示关于我们
const showAbout = () => {
  ElMessage({
    message: '关于我们页面正在开发中',
    type: 'info'
  })
}

// 显示帮助文档
const showHelp = () => {
  ElMessage({
    message: '帮助文档正在编写中',
    type: 'info'
  })
}

// 显示隐私政策
const showPrivacy = () => {
  ElMessage({
    message: '隐私政策页面正在开发中',
    type: 'info'
  })
}
</script>

<style scoped>
.app-footer {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
}

.footer-content {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-links a {
  color: var(--text-color-secondary);
  font-size: 12px;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--primary-color);
}

.copyright {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.copyright-text {
  color: var(--text-color-secondary);
  font-size: 12px;
}

.footer-icons {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-icon {
  color: var(--text-color-secondary);
  font-size: 16px;
  transition: all var(--transition-fast);
}

.footer-icon:hover {
  color: var(--primary-color);
  transform: translateY(-2px);
}
</style> 